//
//  XDRecommendWebViewController.m
//  Le way walkers
//
//  Created by dlios on 15-5-16.
//  Copyright (c) 2015年 LTXZ. All rights reserved.
//

#import "XDRecommendWebViewController.h"

@interface XDRecommendWebViewController ()
@property (nonatomic, retain) UIWebView *webView;
@end

@implementation XDRecommendWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createWebView];
}


- (void)createWebView
{
    //创建web对象
    self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 64 - 49)];
    //获取网络请求
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:_str]];
    //添加主视图
    [self.view addSubview:_webView];
    //加载网络请求
    [_webView loadRequest:request];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
